'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async login() {
    let userinfo = this.ctx.request.body;

    let result = await this.service.flguserSer.loginUser(userinfo);
    console.log(result);
    this.ctx.body = {
        statuscode: 200,
        title: '验证成功',
        result,
        affectrow: result.affectedRows
    }
  }
}

module.exports = HomeController;
